package com.ruoyi.supply.enums;

import lombok.Getter;

/**
 * @author huangxiong
 * @date 2025/06/02 20:14
 */
@Getter
public enum DfStatusEnum {

    DF("0","默认状态"),
    UN_ACTIVE("1","非活跃状态");

    private final String code;
     private final String desc;
      DfStatusEnum(String code, String desc) {
         this.code = code;
         this.desc = desc;
     }

     public static DfStatusEnum getByCode(String code) {
         for (DfStatusEnum statusEnum : DfStatusEnum.values()) {
             if (statusEnum.getCode().equals(code)) {
                 return statusEnum;
             }
         }
         return null;
     }



}
